#pragma once

#include <QThread>

class BestQuoteProcess : public QThread
{
    Q_OBJECT

public:
    BestQuoteProcess(std::map<std::string, int>* indexMap);
    ~BestQuoteProcess();

    void start();
    void run();
    void processData(void* data);

signals:
    void freeAckData(void* data);
    void processFinish(void* data);  //处理完成信号
    void workerProcessData(void* data);

public slots:
    void OnTimer();
    void onWorkerProcessData(void* data);

private:
    QList<void*>                m_lstData;
    std::map<std::string, int>* m_pIndexMap = nullptr;
};

